package com.jvup.common.concurrent;

import java.util.concurrent.TimeUnit;

/**
 * 线程工具
 */
public class ThreadUtil {

    public static <T> Worker<T> interval(long period, TimeUnit unit) {
        return new Worker(Scheduler.Async);
    }

    public static <T> Worker<T> once() {
        return new Worker(Scheduler.Async);
    }

}
